package com.sdp.wx.db.wx_wz_arrival.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_wz_arrival")
public class WxWzArrival extends Model<WxWzArrival> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 单位
     */
    @TableField("org_no")
    private String orgNo;

    /**
     * 仓库
     */
    @TableField("warehouse_code")
    private String warehouseCode;

    /**
     * 生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 采购编码
     */
    @TableField("plan_code")
    private String planCode;

    /**
     * 是否入库
     */
    @TableField("is_input")
    private String isInput;

    /**
     * 到货单编号
     */
    @TableField("arrival_code")
    private String arrivalCode;
    
    /**
     * 到货检验时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("check_time")
    private LocalDateTime checkTime;

    /**
     * 到货检验员
     */
    @TableField("check_person")
    private String checkPerson;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
